﻿namespace ConfigurationManagement.Administration.Data
{
    public static class DataContext
    {
        public static bool ContainsChanges(ConfigurationManagement.Data.ConfigurationManagementDataContext db)
        {
            return db.GetChangeSet().Updates.Count > 0
                   || db.GetChangeSet().Inserts.Count > 0
                   || db.GetChangeSet().Deletes.Count > 0;
        }
    }
}
